<!DOCTYPE html>

<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
	<head>
		<title>n0ted browser</title>
		<link rel="stylesheet" type="text/css" href="style/browser.css" />
		<style><![CDATA[

		]]></style>
		
		<script src="chrome://core/content/lang.js" />
		<script src="chrome://core/content/dom.js" />
		<script src="chrome://core/content/event.js" />
		<script src="chrome://core/content/hooks.js" />
		<script src="chrome://core/content/window-resize.js" />
		<script src="chrome://core/content/data.js" />
		<script src="chrome://core/content/notify.js" />
		<script src="chrome://core/content/window.js" />
		
		
		<script src="js/window-drag.js" />
		<script src="js/history.js" />
		<script src="js/tab-preview.js" />
		<script src="js/tabs.js" />
		
		<script src="js/titlebar.js" />
		<script><![CDATA[
			window.Notify.enabled=true;
			window.onerrror=function(errorMsg, url, lineNumber){
				window.Notify.echo("Error in Chrome: \n"+errorMsg+" @"+(url||"<unknown>")+":"+lineNumber,2);
			};
			
			window.onload=function(){try{
				var saved=getSavedTabs();
				if(!saved.length)
					addTab("https://encrypted.google.com/search?hl=en");
				else{
					for(var i=0;i<saved.length;i++)
						addTab(saved[i].url);
				}
				
				top.onresize=onResize;
				top.onresize();
				window.Notify.echo("Interface loaded",0);
				
			}catch(e){trace(e);}};
			
			window.onbeforeunload=function(){
				writeCurrentTabs();
			};
			
		]]></script>
	</head>
		<body>
			<div id="bodyLayer1">
				<div id="bodyLayer2">
					<div id="title-buttons" class="windowed-block" onclick="event.stop();" ondblclick="hooks.winMaximizedToggle();" onmousedown="window.onTitleDown(event); event.stopPropagation();">
						<div id="title-float">
							<span id="domain" onclick="onShowAddress(event)"></span>
							<span id="title">n0ted browser</span>
						</div>
						<span class="title-alwaysDisplay" style="position:absolute;top:0px; left:4px"><span class="xxl button l" onclick="(function(){var c=document.querySelector('#console'); if(c.style.display=='block'){document.querySelector('#browsers').style.paddingTop='0px'; c.style.display='none';}else{document.querySelector('#browsers').style.paddingTop='29px'; c.style.display='block';} })();"><img src="style/topicon_app.png" /></span><span class="button c" onclick="onShowAddress(event);"><img src="style/topicon_go.png" /></span><span class="button r" onclick="onShowSearch(event);"><img src="style/topicon_search.png" /></span><!-- <span class="button r"><img src="style/topicon_fav.png" /></span> --></span>
						<span style="position:absolute;top:0px; right:4px"><span class="button l" onclick="hooks.winMinimize(); event.preventDefault();"><img src="style/topicon_min.png" /></span><span class="button c" onclick="hooks.winMaximizedToggle();"><img src="style/topicon_max.png" /></span><span class="button r" onclick="hooks.winClose(); event.preventDefault();"><img src="style/topicon_close.png" /></span></span>
					</div>
					<div class="resize" id="resize-se-1" onmousedown="window.hooks.beginResizeSE(event)" />
					<div class="resize"  id="resize-se-2" onmousedown="window.hooks.beginResizeSE(event)" />
					<xul:window id="xulwindow">
						<xul:deck id="browsers" flex="1" />
					</xul:window>
					<div id="console" style="display:none;"></div>
					<canvas id="overlay"></canvas>
					
					<div id="leftCol">
						<div class="fullscreen-block" style="width:100%"><div style="width:141px"><span class="sb-top" id="sb-top-app"></span><span class="sb-top" id="sb-top-go"></span><span class="sb-top" id="sb-top-search"></span><span class="sb-top" id="sb-top-max" onclick="hooks.winMaximizedToggle(); event.preventDefault(); top.onresize();"></span><span class="sb-top" id="sb-top-close" onclick="hooks.winClose(); event.preventDefault();"></span></div></div>
						<div style="position:relative">
							<span id="nav" onclick="doNavigate(event)" />
							<span class="opbutton" onclick="tabs[activeTab].tab.contentWindow.location='https://encrypted.google.com/search?hl=en'" style="position:absolute;top:6px;left:60px"><img src="style/icon_home.png" /></span>
						</div>
						<div id="tab-buttons" style="overflow:visible"></div>
						<div>
							<span class="opbutton" style="margin-top:5px;" onclick="addTab('https://encrypted.google.com/search?hl=en')"><img src="style/icon_new.png" /></span>
						</div>
					</div>
				</div>
			</div>
			
		</body>
	
</html>